projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc91839
)
Improve test for posixicity
author
robertl
<robertl>
Thu, 15 Aug 2002 06:14:18 +0000
(06:14 +0000)
committer
robertl
<robertl>
Thu, 15 Aug 2002 06:14:18 +0000
(06:14 +0000)
magproto.c
patch
|
blob
|
history
diff --git
a/magproto.c
b/magproto.c
index 0160fb2d6234eb9f0bff024249bc4da7c68eb6df..2fc47d7244eeb9a1b00d91ba6d2dba3e7140a73b 100644
(file)
--- a/
magproto.c
+++ b/
magproto.c
@@
-294,7
+294,21
@@
return;
mag_writeack(isum);
}
-#if _POSIX_SOURCE
+#if __WIN32__
+static
+void
+terminit()
+{
+}
+
+static
+void
+termdeinit()
+{
+}
+
+#else
+
#include <termios.h>
static struct termios orig_tio;
static void
@@
-324,20
+338,6
@@
termdeinit()
}
#endif
-#if __WIN32__
-static
-void
-terminit()
-{
-}
-
-static
-void
-termdeinit()
-{
-}
-#endif
-
static void
mag_rd_init(const char *portname)